<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${SESSION_COMPANY}-修改密码</title>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/commonCss.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<%@include file="/resource/common/validate.jspf"%>
<%@include file="/resource/common/showLoading.jspf"%>

<script type="text/javascript" src="${ctxStatic }/js/system/asyncDoSubmitForm.js"></script>

<script type="text/javascript">
	var PATH = "${ctx}";
</script>

<script type="text/javascript">
	//$(function(){validateForm();});
	var result = 0;
	var validateForm;
	$(document).ready(function() {
		$("body").showLoading();
		validateForm = $("#inputForm").validate({
			rules : {
				new_password : {
					required : true,
					minlength : 6,
					maxlength : 18
				},
				confirm_password : {
					required : true,
					minlength : 6,
					maxlength : 18,
					equalTo : "#new_password"
				}
			},
			messages : {
				new_password : {
					required : "请输入密码",
					minlength : "密码长度不能小于6个字符",
					maxlength : "密码长度不能大于18个字符"
				},
				confirm_password : {
					required : "请输入确认密码",
					minlength : "密码长度不能小于6个字符",
					maxlength : "密码长度不能大于18个字符",
					equalTo : "输入的确认密码与密码不一致"
				}
			},
			submitHandler : function() {
			},
			errorElement : "em",
			errorClass : "validate_error"
		});
		$("body").hideLoading();
	});
	
</script>
</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="content-box">
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1">
						<fieldset>
							<input type="hidden" id="asyncResult" name="asyncResult" value="-1" /> 
							<input type="hidden" id="asyncResultData" name="asyncResultData" value="-1" /> 
							<input type="hidden" id="asyncResultError" name="asyncResultError" value="-1" /> 
							<form:form id="inputForm" name="form1" method="post" class="form-horizontal">
								<input type="hidden" id="uid" name="uid" value="${user.uid }" /> 
								<div class="row">
									<div class="col-md-6 col-sm-6 col-xs-6" >
										<div class="form-group">
											<label class="col-md-3 col-sm-3 col-xs-3 control-label">密　　码：<span style="color: red">*</span></label>
											<div class="col-md-9 col-sm-9 col-xs-9">
												<input type="password" class="form-control input-sm" id="new_password" name="new_password"  placeholder="密　　码"/>
											</div>
										</div>
									</div>
									<div class="col-md-6 col-sm-6 col-xs-6" >
										<div class="form-group">
											<label class="col-md-3 col-sm-3 col-xs-3 control-label">确认密码：<span style="color: red">*</span></label>
											<div class="col-md-9 col-sm-9 col-xs-9">
												<input type="password" class="form-control input-sm" id="confirm_password" name="confirm_password"  placeholder="确认密码"/>
											</div>
										</div>
									</div>
								</div>
							</form:form>
						</fieldset>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</body>
</html>